import requests
from config import RunConfig

def 任务派遣单导出(para):
    response = requests.post(
        url=RunConfig.url + "/assignment/order/export/{id}",
        headers=RunConfig.headers,
        json=para,
        verify=False
    )
    return response


def 修改任务派遣单(para):
    response = requests.post(
        url=RunConfig.url + "/assignment/order/update",
        headers=RunConfig.headers,
        json=para,
        verify=False
    )
    return response


def 任务派遣单详情(para):
    response = requests.post(
        url=RunConfig.url + "/assignment/order/info/{id}",
        headers=RunConfig.headers,
        json=para,
        verify=False
    )
    return response


def 分页查询任务派遣单(para):
    response = requests.post(
        url=RunConfig.url + "/assignment/order/page?page=1&perPage=10",
        headers=RunConfig.headers,
        json=para,
        verify=False
    )
    return response
